#include <OSGEventHandler.h>
Public Member Functions | |
| OSGEventHandler (osg::ref_ptr< osgProducer::Viewer > viewer, CMainFrame *newFrame) | |
| ~OSGEventHandler () | |
| bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us) |
| void | drawVehicleDodge (const osgGA::GUIEventAdapter &ea) |
| void | drawVehicleSemi (const osgGA::GUIEventAdapter &ea) |
| void | drawSign (const osgGA::GUIEventAdapter &ea) |
| void | drawLight (const osgGA::GUIEventAdapter &ea) |
| void | drawTree (const osgGA::GUIEventAdapter &ea) |
| void | drawBuilding (const osgGA::GUIEventAdapter &ea) |
| void | select (const osgGA::GUIEventAdapter &ea) |
| void | roadPick (const osgGA::GUIEventAdapter &ea) |
| bool | drawRoad (const osgGA::GUIEventAdapter &ea) |
| bool | rightClickMenu (const osgGA::GUIEventAdapter &ea) |
| void | drag (TraffEduObject *dragObject, const osgGA::GUIEventAdapter &ea) |
| void | calculateNewPosition (const osgGA::GUIEventAdapter &ea) |
| void | calculateOldPosition (const osgGA::GUIEventAdapter &ea) |
Private Attributes | |
| DrawMode | drawMode |
| osg::ref_ptr< osgProducer::Viewer > | _viewer |
| CMainFrame * | frame |
| TraffEduObject * | dragObject |
| boolean | defaultMouse |
| boolean | rightMenu |
| osg::Vec3 | old_position |
| osg::Vec3 | new_position |
| TraffEduObject * | translatedObj |
|
||||||||||||
|
Constructor for the OSGEventHandler class.
|
|
|
Destructor for the OSGEventHandler class. |
|
|
Responsible from the execute/undo opearion of a translate.
|
|
|
Responsibe from the execute/undo opearion of a translate.
|
|
||||||||||||
|
Drags the selected object.
|
|
|
Draws the Environmental Object Building.
|
|
|
Draws the Traffic Light.
|
|
|
Draws the Road, in association with the roadPick.
|
|
|
Draws the Traffic Sign.
|
|
|
Draws the Environmental Object Tree.
|
|
|
Draws the Vehicle Dodge.
|
|
|
Draws the Vehicle Semi.
|
|
||||||||||||
|
Main function in the OSGEventHandler class to deal with the users mouse and Keyboard actions.
|
|
|
Pops-up rightClick menus.
|
|
|
Gets the Road control points.
|
|
|
Selects (ie. highlights) object..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6-NO